package com.tiancheng.trade.order.vo.api.res;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * 退款创建申请返回参数
 *
 * @author kellen
 * @date 2024/4/7
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class RefundCreateResVO {

    // 主订单号
    private String orderId;
    // 退款单批次号
    private String paymentId;
    // 退款单号
    private String refundId;
    // 子订单信息
    private List<SubOrder> subOrders = new ArrayList<>();

    @Getter
    @Setter
    @AllArgsConstructor
    @NoArgsConstructor
    public static class SubOrder {
        // 子订单号
        private String subOrderId;
        // 退款单号
        private String subRefundId;
        // 子订单号金额
        private Integer subOrderAmount;
        // 子订单支付金额
        private Integer subPayAmount;
        // 退款金额
        private Integer refundAmount;
    }
}
